<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>电影票预订系统</title>
    <!-- 引入 Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- 引入 Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary-color: #9d4edd;
            --secondary-color: #5a189a;
            --accent-color: #ff6b6b;
            --dark-color: #10002b;
            --light-color: #f8f9fa;
        }
        
        body {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }
        
        /* 电影胶片效果装饰 */
        .film-strip {
            position: absolute;
            width: 100%;
            height: 40px;
            background: repeating-linear-gradient(
                90deg,
                #000 0px,
                #000 20px,
                #333 20px,
                #333 40px
            );
            opacity: 0.3;
            z-index: 1;
        }
        
        .film-strip-top {
            top: 0;
        }
        
        .film-strip-bottom {
            bottom: 0;
        }
        
        .container {
            max-width: 1000px;
            z-index: 2;
        }
        
        .main-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
            overflow: hidden;
            transition: all 0.3s ease;
            border: none;
        }
        
        .main-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }
        
        .header {
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            padding: 30px 20px;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        .header::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
            transform: rotate(30deg);
        }
        
        .header h1 {
            font-size: 2.8rem;
            font-weight: 800;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            letter-spacing: 1px;
            position: relative;
        }
        
        .header p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
            position: relative;
        }
        
        .content-section {
            padding: 40px;
        }
        
        .btn-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .btn-custom {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            border: none;
            border-radius: 50px;
            padding: 14px 35px;
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            box-shadow: 0 5px 15px rgba(154, 96, 212, 0.4);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            color: white;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .btn-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(154, 96, 212, 0.6);
        }
        
        .btn-custom:active {
            transform: translateY(1px);
        }
        
        .btn-custom::after {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(30deg);
            transition: all 0.5s ease;
            opacity: 0;
        }
        
        .btn-custom:hover::after {
            opacity: 1;
            top: -20%;
            left: -20%;
        }
        
        .feature-section {
            display: flex;
            justify-content: space-between;
            margin-top: 40px;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .feature {
            flex: 1;
            min-width: 250px;
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border-left: 4px solid var(--primary-color);
            text-align: center;
        }
        
        .feature:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }
        
        .feature i {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }
        
        .feature h3 {
            color: var(--secondary-color);
            margin-bottom: 15px;
            font-weight: 700;
        }
        
        .feature p {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.6;
        }
        
        .movie-posters {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 40px;
            flex-wrap: wrap;
        }
        
        .poster {
            width: 120px;
            height: 180px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            position: relative;
        }
        
        .poster:hover {
            transform: translateY(-8px) scale(1.05);
            z-index: 10;
        }
        
        .poster img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .poster::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40%;
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
        }
        
        .alert-container {
            margin-top: 30px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .alert {
            border-radius: 10px;
            border-left: 5px solid;
            font-weight: 500;
        }
        
        .alert-success {
            border-left-color: #28a745;
        }
        
        .alert-danger {
            border-left-color: #dc3545;
        }
        
        .alert-info {
            border-left-color: #17a2b8;
        }
        
        .footer {
            text-align: center;
            margin-top: 40px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            padding: 20px;
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2.2rem;
            }
            
            .content-section {
                padding: 30px 20px;
            }
            
            .btn-container {
                flex-direction: column;
                gap: 15px;
            }
            
            .btn-custom {
                width: 100%;
            }
        }
    </style>
</head>
<body>
    <!-- 电影胶片装饰 -->
    <div class="film-strip film-strip-top"></div>
    <div class="film-strip film-strip-bottom"></div>
    
    <div class="container">
        <div class="main-card">
            <div class="header">
                <h1><i class="fas fa-film"></i> 电影票预订系统</h1>
                <p>畅享最新大片，轻松预订座位，开启您的电影之旅</p>
            </div>
            
            <div class="content-section">
                <div class="welcome-text text-center">
                    <h2 class="mb-4" style="color: var(--secondary-color);">欢迎来到电影世界</h2>
                    <p class="lead" style="color: #555; max-width: 700px; margin: 0 auto 30px; line-height: 1.7;">
                        我们的在线预订系统为您提供最便捷的购票体验，随时随地选择您喜爱的电影，预订最佳座位。
                        加入我们，享受独家会员优惠和最新电影资讯！
                    </p>
                </div>
                
                <div class="btn-container">
                    <a href="{{ url_for('auth.register') }}" class="btn btn-custom">
                        <i class="fas fa-user-plus"></i> 立即注册
                    </a>
                    <a href="{{ url_for('auth.login') }}" class="btn btn-custom">
                        <i class="fas fa-sign-in-alt"></i> 会员登录
                    </a>
                </div>
                
                <div class="movie-posters">
                    <div class="poster">
                        <img src="https://images.unsplash.com/photo-1536440136628-849c177e76a1?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80" alt="Action Movie">
                    </div>
                    <div class="poster">
                        <img src="https://images.unsplash.com/photo-1542204165-65bf26472b9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80" alt="Sci-Fi Movie">
                    </div>
                    <div class="poster">
                        <img src="https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80" alt="Comedy Movie">
                    </div>
                    <div class="poster">
                        <img src="https://images.unsplash.com/photo-1535016120720-40c646be5580?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80" alt="Drama Movie">
                    </div>
                    <div class="poster">
                        <img src="https://images.unsplash.com/photo-1485846234645-a62644f84728?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80" alt="Horror Movie">
                    </div>
                </div>
                
                <div class="feature-section">
                    <div class="feature">
                        <i class="fas fa-ticket-alt"></i>
                        <h3>便捷订票</h3>
                        <p>轻松选择电影、场次和座位，一键完成预订，节省您的时间</p>
                    </div>
                    <div class="feature">
                        <i class="fas fa-video"></i>
                        <h3>海量片库</h3>
                        <p>涵盖最新大片、经典电影、独立影片，满足各类观影需求</p>
                    </div>
                    <div class="feature">
                        <i class="fas fa-gift"></i>
                        <h3>会员专享</h3>
                        <p>注册会员享受专属折扣、积分兑换和优先选座特权</p>
                    </div>
                </div>
                
                <div class="alert-container">
                    {% with messages = get_flashed_messages(with_categories=true) %}
                        {% if messages %}
                            {% for category, message in messages %}
                                <div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
                                    {{ message }}
                                    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                                </div>
                            {% endfor %}
                        {% endif %}
                    {% endwith %}
                </div>
            </div>
        </div>
        
        <div class="footer">
            <p>© 2025 电影票预订系统 | 畅享光影世界，体验非凡人生</p>
            <p class="mt-2">
                <i class="fas fa-phone me-2"></i>客服热线: 400-123-4567 
                <i class="fas fa-envelope ms-3 me-2"></i>邮箱: contact@cinema.com
            </p>
        </div>
    </div>

    <!-- 引入 Bootstrap JS 和 Popper.js -->
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js"></script>
    
    <script>
        // 添加简单的交互动画
        document.addEventListener('DOMContentLoaded', function() {
            const posters = document.querySelectorAll('.poster');
            
            posters.forEach((poster, index) => {
                // 添加延迟动画
                poster.style.animationDelay = `${index * 0.1}s`;
                
                // 添加鼠标悬停效果
                poster.addEventListener('mouseenter', function() {
                    this.style.transform = 'translateY(-8px) scale(1.05)';
                });
                
                poster.addEventListener('mouseleave', function() {
                    this.style.transform = 'translateY(0) scale(1)';
                });
            });
        });
    </script>
</body>
</html>